import React, { useState } from 'react'
import Test from './Test'
export default function App() {
  const [isShow, setIsShow] = useState(true)
  return (
    <div>
      App,
      <button
        onClick={() => {
          setIsShow(false)
        }}
      >
        卸载Test
      </button>
      {isShow && <Test></Test>}
    </div>
  )
}
